home *** CD-ROM | disk | FTP | other *** search
/ Programmer Power Tools / Programmer Power Tools.iso / trojan_p / checkmem.c < prev    next >
C/C++ Source or Header  |  1989-06-09  |  510b  |  21 lines

  1. #include <stdio.h>
  2.  
  3. main()
  4. {
  5.     checkmem();
  6. }
  7.  
  8. int checkmem()
  9. {
  10.     unsigned int vec_ip,vec_cs,orgvec_ip,orgvec_cs,highmem;
  11.  
  12.     vec_ip = peek(4*0x13,0);
  13.     vec_cs = peek(4*0x13+2,0);
  14.     printf("\n13H vect IP = %x\n13H vect CS = %x\n",vec_ip,vec_cs);
  15.     orgvec_ip = peek(4*0x6D,0);
  16.     orgvec_cs = peek(4*0x6D+2,0);
  17.     printf("\n\n6DH vect IP = %x\n6DH vect CS = %x\n",orgvec_ip,orgvec_cs);
  18.     highmem=peek(0x413,0);
  19.     printf("\n\nHigh memory limit = %d  (%xH)\n",highmem,highmem);
  20. } /* checkmem */
  21.